package com.zyy.dataSource.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.ToString;

import java.io.Serializable;

/**
 * (TestDataSourceConfig)表实体类
 *
 * @author makejava
 * @since 2024-08-09 17:33:49
 */
@ToString
@SuppressWarnings("serial")
public class TestDataSourceConfig extends Model<TestDataSourceConfig> {
//主键
    private String id;
//url
    private String url;
//用户名
    private String username;
//密码
    private String password;
//驱动
    private String driver;
//数据库类型
    private String type;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

